# Maintainer: Simon Zeni <simon@bl4ckb0ne.ca>
pkgname=cglm
pkgver=0.9.2
pkgrel=0
pkgdesc="Highly Optimized Graphics Math (glm) for C"
url="http://cglm.readthedocs.io"
arch="all"
license="MIT"
makedepends="meson"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/recp/cglm/archive/v$pkgver.tar.gz"

build() {
	abuild-meson . build -Dbuild_tests=true
	meson compile -C build
}

check() {
	meson test --no-rebuild --print-errorlogs -C build
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C build
}

sha512sums="
d5de879b2510f534dbc82c88b6f4f324088468af7218a635aff08cc3327787f95b0dc896816b9610e5a319cd071bf2443923d3c1d426fd58509f39867d684e5f  cglm-0.9.2.tar.gz
"
